home *** CD-ROM | disk | FTP | other *** search
-
- The Lynx format
-
- WARNING: The description below is a mere extrapolation from the files and
- program sources I've encountered. This format description does not take Lynx
- archives containing relative files into account since I've never seen one.
-
- Lynx is used to put multiple files into a single archive. The archives start
- with a small BASIC program that displays a message on the screen saying that
- you should use a Lynx program to extract its contents. Then comes a directory
- of the files in the archive which is followed by the files themselves, all
- aligned to sector boundary. Lynx archives are in no way compressed, the files
- are simply linked (hence the name) after each other in it.
- All entries, strings and other parts of the directory are separated with a
- carriage return. All numbers are stored in a string form which starts and ends
- with a space.
-
- A typical BASIC program for Lynx archives looks like this:
-
- 10 POKE53280,0:POKE53281,0:POKE646,PEEK(162):PRINT"<CLS><DOWN><DOWN><DOWN>
- <DOWN><DOWN><DOWN><DOWN><DOWN>":PRINT" USE LYNX TO DISSOLVE THIS FILE":
- GOTO10
-
- The BASIC program ends with the usual three zero bytes. They are followed by
- the number of blocks used by the directory, then a copyright string with the
- Lynx program name, version number and the name of its author, and finally the
- number of files in the archive, e.g.
-
- <CR> 3 *LYNX XVII WILL CORLEY<CR> 18 <CR>
-
- means that the directory uses 3 blocks, holds 18 entries and the archive was
- created by Lynx version 17 which is copyrighted by Will Corley.
-
- Entries in the directory are made up by the filename, the length of the file
- in blocks, the filetype, and the number of bytes + 1 in the last block, e.g.
- (underscores represent Shift-Spaces that fill up the name to 16 characters)
-
- HASHMON_________<CR> 17 <CR>P<CR> 35 <CR>
-
- means that the current file is a program, it's called "hashmon", it's 17
- blocks long and the last block contains 34 bytes (the remaining part of that
- block is probably filled with garbage).
-
- The first file starts at the beginning of the block that follows the last
- block of the directory. All files are similarly aligned so that they start at
- the beginning of a block. This method has the advantage that the extractor
- program running on a real Commodore machine doesn't have to move data only
- split the archive into the original files.
-